<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

            <ul class="nav nav-tabs" style="margin-bottom: 10px;">
                <li role="presentation" class="active"><a data-toggle="tab" href="#base">基础设置</a></li>
                <li role="presentation"><a data-toggle="tab" href="#index">首页设置</a></li>
                <li role="presentation"><a data-toggle="tab" href="#order">订单设置</a></li>
<!--                <li role="presentation"><a data-toggle="tab" href="#brokerage">分销设置</a></li>-->
                <li role="presentation"><a data-toggle="tab" href="#agreement">隐私设置</a></li>
                <li role="presentation"><a data-toggle="tab" href="#withdraw">提现设置</a></li>
                <li role="presentation"><a data-toggle="tab" href="#about">关于我们</a></li>
                <li role="presentation"><a data-toggle="tab" href="#share">分享设置</a></li>

            </ul>

            <div class="tab-content">
                <div class="active tab-pane" id="base">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-logo" class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-logo" data-chunking="true" ><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-logo"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-logo"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Beian')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-beian" class="form-control" name="row[beian]" type="text" value="{$row.beian|htmlentities}">
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="index">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Index_view')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-index_view" class="form-control editor" rows="5" name="row[index_view]" cols="50">{$row.index_view|htmlentities}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
                                <input id="c-lat" name="row[lat]" type="hidden" value="{$row.lat|htmlentities}">
                                <input id="c-lng" name="row[lng]" type="hidden" value="{$row.lng|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" class="btn btn-danger" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng" data-toggle="addresspicker"><i class="fa fa-location-arrow"></i> 选择位置</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-images"></span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Video')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-video" class="form-control" size="50" name="row[video]" type="text" value="{$row.video|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-video" class="btn btn-danger faupload" data-input-id="c-video"  data-multiple="false" data-preview-id="p-video" data-chunking="true" ><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-video" class="btn btn-primary fachoose" data-input-id="c-video"  data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-video"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-video"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Video_image')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-video_image" class="form-control" size="50" name="row[video_image]" type="text" value="{$row.video_image|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-video_image" class="btn btn-danger faupload" data-input-id="c-video_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-video_image" data-chunking="true" ><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-video_image" class="btn btn-primary fachoose" data-input-id="c-video_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-video_image"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-video_image"></ul>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="order">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Order_pay_close_time')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-order_pay_close_time" class="form-control" name="row[order_pay_close_time]" min="0" type="number" value="{$row.order_pay_close_time}">
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="brokerage">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Brokerage_index_order')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-brokerage_index_order" class="form-control" name="row[brokerage_index_order]" type="number" value="{$row.brokerage_index_order|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Brokerage_shop_claim')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-brokerage_shop_claim" class="form-control" name="row[brokerage_shop_claim]" type="number" value="{$row.brokerage_shop_claim|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Is_burst_goods_buy_limit_user')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-is_burst_goods_buy_limit_user" name="row[is_burst_goods_buy_limit_user]" type="hidden" value="{$row.is_burst_goods_buy_limit_user}">
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-confirm="确认切换开关？" data-input-id="c-is_burst_goods_buy_limit_user" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {eq name="$row.is_burst_goods_buy_limit_user" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                            </a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Brokerage_score_conversion_rate')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-brokerage_score_conversion_rate" class="form-control" name="row[brokerage_score_conversion_rate]" type="number" value="{$row.brokerage_score_conversion_rate|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Is_user_score_award')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-is_user_score_award" name="row[is_user_score_award]" type="hidden" value="{$row.is_user_score_award}">
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-confirm="确认切换开关？" data-input-id="c-is_user_score_award" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {eq name="$row.is_user_score_award" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="agreement">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Privacy_agreement')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-privacy_agreement" class="form-control editor" rows="5" name="row[privacy_agreement]" cols="50">{$row.privacy_agreement|htmlentities}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Registration_agreement')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-registration_agreement" class="form-control editor" rows="5" name="row[registration_agreement]" cols="50">{$row.registration_agreement|htmlentities}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_agreement')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-pay_agreement" class="form-control editor" rows="5" name="row[pay_agreement]" cols="50">{$row.pay_agreement|htmlentities}</textarea>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="withdraw">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Withdraw_limit')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-withdraw_limit" class="form-control" name="row[withdraw_limit]" min="0" type="number" value="{$row.withdraw_limit}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Withdraw_service_charge')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-withdraw_service_charge" class="form-control" name="row[withdraw_service_charge]" min="0" type="number" value="{$row.withdraw_service_charge}">
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="about">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('About')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-about" class="form-control editor" rows="5" name="row[about]" cols="50">{$row.about|htmlentities}</textarea>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="share">
                    <div class="form-group hide">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Bg_image')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-bg_image" data-rule="required" class="form-control" size="50" name="row[bg_image]" type="text" value="{$row.bg_image|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-bg_image" class="btn btn-danger faupload" data-input-id="c-bg_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-bg_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-bg_image" class="btn btn-primary fachoose" data-input-id="c-bg_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-bg_image"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-bg_image"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Bg_invite_image')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-bg_invite_image" data-rule="required" class="form-control" size="50" name="row[bg_invite_image]" type="text" value="{$row.bg_invite_image|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-bg_invite_image" class="btn btn-danger faupload" data-input-id="c-bg_invite_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-bg_invite_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-bg_invite_image" class="btn btn-primary fachoose" data-input-id="c-bg_invite_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-bg_invite_image"></span>
                            </div>
                            <p style="color: red">推荐尺寸(宽高): 630px * 650px</p>
                            <ul class="row list-inline faupload-preview" id="p-bg_invite_image"></ul>
                        </div>
                    </div>
                </div>
            </div>

            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </form>
    </div>
</div>